package com.gopay.common.account;

import java.io.Serializable;

public class AccountResult implements Serializable {
    /**
     * 
     */
    private static final long serialVersionUID = 2708011738790023104L;

    /**
     * 订单号
     */
    private String orderId;

    /**
     * 账务处理状态
     */
    private int status;

    /**
     * 错误码
     */
    private String errCode;

    /**
     * 错误描述
     */
    private String errMsg;

    public AccountResult() {
        this.status = EnterAcctStatus.FAIL;
    }

    class EnterAcctStatus {
        /**
         * 等待处理
         */
        public static final int WAIT = 0;

        /**
         * 入账成功
         */
        public static final int OK = 1;

        /**
         * 入账失败
         */
        public static final int FAIL = 2;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getErrCode() {
        return errCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public String getErrMsg() {
        return errMsg;
    }

    public void setErrMsg(String errMsg) {
        this.errMsg = errMsg;
    }
}
